import { Controller, Get } from '@nestjs/common';
import { StatisticsService } from './statistics.service';
import { ApiOperation, ApiTags } from '@nestjs/swagger';

@Controller('statistics')
@ApiTags('统计管理')
export class StatisticsController {
  constructor(private readonly statisticsService: StatisticsService) {}

  @Get('statisticsList')
  @ApiOperation({ summary: '查询统计数据' })
  findStatistics() {
    return this.statisticsService.findStatistics();
  }
}
